package com.ryan.feign;

import com.ryan.entity.Products;
import com.ryan.service.ProductFeign;
import org.springframework.stereotype.Component;

/**
 * @author raofy
 * @date 2021-09-28 15:09
 * @desc 自定义基于Feign的Product的熔断处理类
 */
@Component
public class ProductFeignFallBack implements ProductFeign {
    @Override
    public Products query(Integer id) {
        return null;
    }

    @Override
    public String findServerPort() {
        return "-1";
    }
}
